<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div class='app-container'>
    <el-row>
      <el-col :span='22' :xs='24'>
        <el-form ref="form" :model="s_excel" :rules="rules" label-width="100px" id="mvcfm">
          <el-button @click="popMVCBF20C787DD214C1B8859CD1A69DD8B39('')" type='primary' size="mini"><i class='fa fa-upload'></i>导入excel</el-button>
          <div class="form-unit">
            <span class="mvc-title-left"> 过程记录 </span>
          </div>
          <el-table :data="s_excel">
            <el-table-column label="名称" prop="record_id">
              <template slot-scope="scope">
                <el-link @click="gotoPage('&CMIDrecord='+scope.row.record_id+''+vueparams+'')" type='primary'>{{scope.row.title}}</el-link>
              </template>
            </el-table-column>
            <el-table-column label="下载" prop="file_id">
              <template slot-scope="scope">
                <el-link @click="gotoPage('/xcapi/ProcessFile/DownloadFile.do?&fileid='+scope.row.file_id+''+vueparams+'')" type='primary'>下载</el-link>
              </template>
            </el-table-column>
          </el-table>
          <pagination v-show="total>0" :total="total" :limit.sync="pageSize" @pagination="getPage" />
        </el-form>
      </el-col>
      <el-col :span='2' :xs='24'>
        <el-menu default-active='active' class='menu-unit'>
          <el-menu-item v-for='item in Container'>
            <el-link @click="gotoMenu(item.url)" :type="'评审过程'===item.name?'primary':'default'">{{item.page_desc||item.name}}</el-link>
          </el-menu-item>
        </el-menu>
      </el-col>
    </el-row>
    <el-dialog :visible.sync="MVCBF20C787DD214C1B8859CD1A69DD8B39Visible" append-to-body>
      <MVCBF20C787DD214C1B8859CD1A69DD8B39 v-if="MVCBF20C787DD214C1B8859CD1A69DD8B39Visible" ref="MVCBF20C787DD214C1B8859CD1A69DD8B39" :popparams="popparams"> </MVCBF20C787DD214C1B8859CD1A69DD8B39>
    </el-dialog>
  </div>
</template>
<script>
  import request from '@/utils/request'
  import MVCBF20C787DD214C1B8859CD1A69DD8B39 from "@/views/mes/main/MVCBF20C787DD214C1B8859CD1A69DD8B39";
  export default {
    name: 'MVCD23F7F602FF14028A2DAFF9C094632C1',
    components: {
      MVCBF20C787DD214C1B8859CD1A69DD8B39,
    },
    props: ['popparams'],
    data() {
      return {
        MVCBF20C787DD214C1B8859CD1A69DD8B39Visible: false,
        MVCBF20C787DD214C1B8859CD1A69DD8B39Value: null,
        MVCBF20C787DD214C1B8859CD1A69DD8B39Desc: null,
        vueparams: this.getVUEParams(""),
        s_excel: [],
        loading: false,
        Container: null,
        rules: {}
      }
    },
    created() {
      this.getData();
      this.loadContainerMenu({
        pid: "0DE8485F0D57410993D741446A2B0598",
        name: "工艺编辑器右菜单",
        selected: "评审过程"
      }, 'Container', this.vueparams);
    },
    updated() {},
    mounted() {},
    methods: {
      getData() {
        request({
          method: 'get',
          url: '/xcapi/VUEAction/mes/product/ProcedureAction/mVCD23F7F602FF14028A2DAFF9C094632C1?' + this.vueparams,
        }).then(data => {
          for (var k in data) {
            if (Array.isArray(data[k])) {
              this[k] = data[k];
            } else {
              $.extend(this[k], data[k]);
            }
          }
        })
      },
      popMVCBF20C787DD214C1B8859CD1A69DD8B39(params) {
        if (params != "") this.popparams = params + this.vueparams;
        this.MVCBF20C787DD214C1B8859CD1A69DD8B39Visible = !this.MVCBF20C787DD214C1B8859CD1A69DD8B39Visible;
      },
    },
  }
</script>
